﻿#ifndef MYLABEL_H
#define MYLABEL_H

#include<QMainWindow>
#include<QLabel>
#include<QMouseEvent>
class myLabel : public QLabel
{
    Q_OBJECT
public:
    myLabel(QWidget *parent=nullptr);
    void mousePressEvent(QMouseEvent *event);
    void setType(int n);
signals:
    void  tuichu();
    void  qiehuan();
    void  find();
private:
    enum type{EXIT,SWITCH,SERCHER};
    enum type labelType;

};

#endif // MYLABEL_H
